<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增词组(汉典)')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-cizudb-add">
            <div class="form-group">    
                <label class="col-sm-3 control-label">词组：</label>
                <div class="col-sm-8">
                    <input name="ci" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">unicode：</label>
                <div class="col-sm-8">
                    <input name="ciUnicode" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">类型：</label>
                <div class="col-sm-8">
                    <select name="type" class="form-control m-b">
                        <option value="">所有</option>
                    </select>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">词频：</label>
                <div class="col-sm-8">
                    <input name="cipin" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">py：</label>
                <div class="col-sm-8">
                    <input name="py" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">pinyin：</label>
                <div class="col-sm-8">
                    <input name="pinyin" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">同义词：</label>
                <div class="col-sm-8">
                    <input name="tongyici" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">反义词：</label>
                <div class="col-sm-8">
                    <input name="fanyici" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">注解：</label>
                <div class="col-sm-8">
                    <input name="zhujie" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">注解(full)：</label>
                <div class="col-sm-8">
                    <input name="fullZhujie" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">精简库：</label>
                <div class="col-sm-8">
                    <select name="tiny" class="form-control m-b" th:with="type=${@dict.getType('common_support')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">抓取状态：</label>
                <div class="col-sm-8">
                    <select name="spiderStatus" class="form-control m-b" th:with="type=${@dict.getType('cizu_spider_status')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">解释(汉典)：</label>
                <div class="col-sm-8">
                    <input name="jieshi" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">古语词典：</label>
                <div class="col-sm-8">
                    <input name="gycd" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "dict/cizudb"
        $("#form-cizudb-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-cizudb-add').serialize());
            }
        }
    </script>
</body>
</html>